﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="billView.aspx.cs" Inherits="WEB.T_bill.billView" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    显示信息
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <table style="width: 100%;">
        <tr>
            <td>&nbsp;
            </td>
        </tr>
        <tr>
            <td align="center">
                <table width="600px">
                    <tr>
                        <td align="right">
                            时间段:
                        </td>
                        <td>
                            <asp:TextBox ID="tbTimestart" runat="server" class="Wdate" MaxLength="10"></asp:TextBox>
                            至<asp:TextBox ID="tbTimestop" runat="server" class="Wdate" MaxLength="10"></asp:TextBox>
                            <asp:DropDownList ID="ddlorder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlorder_SelectedIndexChanged">
                                <asp:ListItem Value="desc">降序</asp:ListItem>
                                <asp:ListItem Value="asc">升序</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:DropDownList ID="ddlQuery" runat="server" Height="20px" Width="109px" AutoPostBack="true">
                                <asp:ListItem Value="CustomerName">公司名称</asp:ListItem>
                                 <asp:ListItem Value=" headLadingBillNo">头程提单号</asp:ListItem>
                                <asp:ListItem Value="ladingBillNO">提单号</asp:ListItem>
                                <asp:ListItem Value="goodsName">货物名称</asp:ListItem>
                                <asp:ListItem Value="shipname">船名</asp:ListItem>
                                <asp:ListItem Value="PO">订单号</asp:ListItem>
                                <asp:ListItem Value="filingNO">归档号</asp:ListItem>
                                <asp:ListItem Value="inspectionNo">报检单号</asp:ListItem>
                                <asp:ListItem Value="customsNo">报关单号</asp:ListItem>
                                <asp:ListItem Value=" a.sheetID">委托单单号</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:TextBox ID="tbQuery" runat="server" MaxLength="30" Height="16px" Width="350px"></asp:TextBox>
                            <%if (ddlQuery.SelectedValue == "CustomerName")
                              { %>
                            <asp:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" ServiceMethod="GetCustomersName"
                                TargetControlID="tbQuery" MinimumPrefixLength="1" CompletionInterval="358">
                            </asp:AutoCompleteExtender>
                            <%} %>
                            <asp:Button ID="btncheck" runat="server" Text="  查 询" OnClick="btncheck_Click" CssClass="Submit_Query" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3">
                <asp:GridView ID="gvTALL" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanging="gvTALL_SelectedIndexChanging"
                    Height="16px" Style="margin-top: 0px" Width="800px" CellPadding="4" DataKeyNames="sheetID"
                    ForeColor="Black" GridLines="Vertical" OnRowDataBound="gvTALL_RowDataBound" AllowPaging="True"
                    OnPageIndexChanging="gvTALL_PageIndexChanging" BackColor="White" BorderColor="#DEDFDE"
                    BorderStyle="None" BorderWidth="1px" CssClass="distance" PageSize="20" OnRowEditing="gvTALL_RowEditing">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="sheetID" HeaderText="委托单号" />
                        <asp:BoundField DataField="客户名" HeaderText="公司名称" />
                        <asp:BoundField DataField="进出口日期" HeaderText="日期" DataFormatString="{0:d}" />
                         <asp:BoundField DataField="提单号" HeaderText="提单号" />
                       <asp:BoundField DataField="头程提单号" HeaderText="头程提单号" />
                        <asp:BoundField DataField="船名" HeaderText="船名" />
                        <asp:BoundField DataField="货名" HeaderText="货名" />
                        <asp:BoundField DataField="数量" HeaderText="数量" />
                        <asp:BoundField DataField="报关单号" HeaderText="报关单号" />
                         <asp:BoundField DataField="报检号" HeaderText="报检号" />
                        <asp:CommandField ShowEditButton="True" ButtonType="Button" EditText="结算单">
                            <ControlStyle CssClass="Submit_gvbig" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style1" align ="center" style="color: #FF0000">
                &nbsp;</td>
        </tr>

    </table>
</asp:Content>
